.class Lcom/xiaomi/notes/NoteListActivity$15;
.super Ljava/lang/Object;
.source "NoteListActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/xiaomi/notes/NoteListActivity;->showSettingPasswordDialog()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/xiaomi/notes/NoteListActivity;

.field final synthetic val$text:Landroid/widget/EditText;

.field final synthetic val$textRepeat:Landroid/widget/EditText;


# direct methods
.method constructor <init>(Lcom/xiaomi/notes/NoteListActivity;Landroid/widget/EditText;Landroid/widget/EditText;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 975
    iput-object p1, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iput-object p2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->val$text:Landroid/widget/EditText;

    iput-object p3, p0, Lcom/xiaomi/notes/NoteListActivity$15;->val$textRepeat:Landroid/widget/EditText;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v4, 0x0

    .line 978
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->val$text:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 979
    .local v0, str:Ljava/lang/String;
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->val$textRepeat:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    .line 980
    .local v1, strRepeat:Ljava/lang/String;
    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 981
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v2}, Lcom/xiaomi/notes/NoteListActivity;->access$1500(Lcom/xiaomi/notes/NoteListActivity;)[Ljava/lang/Object;

    move-result-object v2

    const/4 v3, 0x2

    aput-object v0, v2, v3

    .line 982
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    const v3, 0x7f050048

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 984
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iget-object v3, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v3}, Lcom/xiaomi/notes/NoteListActivity;->access$1500(Lcom/xiaomi/notes/NoteListActivity;)[Ljava/lang/Object;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/xiaomi/notes/Tools;->setConfigData(Landroid/app/Activity;[Ljava/lang/Object;)V

    .line 990
    :goto_0
    return-void

    .line 986
    :cond_0
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    const v3, 0x7f05004a

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 988
    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$15;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v2}, Lcom/xiaomi/notes/NoteListActivity;->access$2100(Lcom/xiaomi/notes/NoteListActivity;)V

    goto :goto_0
.end method
